home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / AIncludes / SysErr.a < prev    next >
Encoding:
Text File  |  1993-11-30  |  37.2 KB  |  715 lines  |  [TEXT/MPS ]

  1. ;    File:        SysErr.a
  2. ;
  3. ;    Copyright:    © 1983-1993 by Apple Computer, Inc.
  4. ;                All rights reserved.
  5. ;
  6. ;    Version:    System 7.1 for ETO #11
  7. ;    Created:    Tuesday, March 30, 1993 18:00
  8. ;
  9. ;___________________________________________________________________________
  10.  
  11.     IF &TYPE('__INCLUDINGSYSERR__') = 'UNDEFINED' THEN
  12. __INCLUDINGSYSERR__    SET    1
  13.  
  14.                   IF          (&TYPE('wholeErrors') = 'UNDEFINED') THEN
  15. wholeErrors       EQU         0
  16.                   ENDIF
  17.  
  18. noErr             EQU         0                         ; success
  19.  
  20. ;__________________________________________________
  21. ; general errors
  22.  
  23. paramErr        EQU         -50                     ; bad parameter passed
  24. noHardwareErr     EQU         -200                      ; missing the hardware to do this
  25. notEnoughHardwareErr EQU      -201                      ; inadequate hardware to do this
  26. userCanceledErr   EQU         -128                      ; user canceled the operation status
  27.  
  28. ;__________________________________________________
  29. ; VBL Mgr, queueing, etc.
  30.  
  31. qErr              EQU         -1                        ; queue element not found during deletion
  32. vTypErr           EQU         -2                        ; invalid queue element
  33. corErr            EQU         -3                        ; core routine number out of range
  34. unimpErr          EQU         -4                        ; unimplemented core routine
  35. SlpTypeErr        EQU         -5                        ; invalid queue element
  36. seNoDB            EQU         -8                        ; no debugger installed to handle debugger command
  37.  
  38. ;__________________________________________________
  39. ; Device Manager errors
  40.  
  41. controlErr        EQU         -17                       ; driver can’t respond to Control call / Unimplemented control instruction
  42. statusErr         EQU         -18                       ; driver can’t respond to Status call
  43. readErr           EQU         -19                       ; driver can’t respond to Read call
  44. writErr           EQU         -20                       ; driver can’t respond to Write call
  45. badUnitErr        EQU         -21                       ; driver reference number doesn’t match unit table
  46. unitEmptyErr      EQU         -22                       ; driver reference number specifies NIL handle in unit table
  47. openErr           EQU         -23                       ; requested read/write permission doesn’t match driver’s open permission / Attempt to open RAM serial Driver failed
  48. closErr           EQU         -24                       ; close error
  49. dRemovErr         EQU         -25                       ; tried to remove an open driver
  50. dInstErr          EQU         -26                       ; DrvrInstall couldn’t find driver in resources
  51. abortErr          EQU         -27                       ; I/O request aborted by KillIO / I/O abort error
  52. iIOAbortErr       EQU         -27                       ; I/O abort error (Printing Manager)
  53. notOpenErr        EQU         -28                       ; Couldn’t rd/wr/ctl/sts cause driver not opened
  54. unitTblFullErr    EQU         -29                       ; unit table has no more entries
  55. dceExtErr         EQU         -30                       ; DCE extension error
  56.  
  57. ; slot support
  58.  
  59. slotNumErr        EQU         -360                      ; invalid slot # error
  60. gcrOnMFMErr       EQU         -400                      ; gcr format on high density media error
  61.  
  62. ;__________________________________________________
  63. ; File Manager errors
  64.  
  65. dirFulErr         EQU         -33                       ; directory full
  66. dskFulErr         EQU         -34                       ; disk full
  67. nsvErr            EQU         -35                       ; no such volume
  68. ioErr             EQU         -36                       ; I/O error (bummers)
  69. bdNamErr          EQU         -37                       ; bad file name or volume name (perhaps zero length)
  70. fnOpnErr          EQU         -38                       ; file not open
  71. eofErr            EQU         -39                       ; logical end-of-file reached during read operation
  72. posErr            EQU         -40                       ; attempt to position to before start of file (r/w)
  73. mFulErr           EQU         -41                       ; memory full (open) or file won’t fit (load)
  74. tmfoErr           EQU         -42                       ; too many files open
  75. fnfErr            EQU         -43                       ; file not found
  76. wPrErr            EQU         -44                       ; diskette is write protected
  77. fLckdErr          EQU         -45                       ; file is locked
  78. vLckdErr          EQU         -46                       ; volume is locked
  79. fBsyErr           EQU         -47                       ; file is busy (delete)
  80. dupFNErr          EQU         -48                       ; duplicate filename (rename)
  81. opWrErr           EQU         -49                       ; file already open with with write permission
  82. rfNumErr          EQU         -51                       ; path reference number specifies nonexistent access path
  83. gfpErr            EQU         -52                       ; get file position error
  84. volOffLinErr      EQU         -53                       ; volume not on line error (was Ejected)
  85. permErr           EQU         -54                       ; permissions error (on file open) / Attempt to open locked file for writing
  86. volOnLinErr       EQU         -55                       ; drive volume already on-line at MountVol
  87. nsDrvErr          EQU         -56                       ; no such drive (tried to mount a bad drive num)
  88. noMacDskErr       EQU         -57                       ; not a mac diskette (sig bytes are wrong)
  89. extFSErr          EQU         -58                       ; volume in question belongs to an external fs
  90. fsRnErr           EQU         -59                       ; file system internal error:
  91.                                                         ;    during rename the old entry was deleted but could
  92.                                                         ;    not be restored
  93. badMDBErr         EQU         -60                       ; bad master directory block: must reinitialize volume
  94. wrPermErr         EQU         -61                       ; Read/write permission doesn’t allow writing
  95.  
  96. ; errors introduced with HFS
  97.  
  98. dirNFErr          EQU         -120                      ; directory not found
  99. tmwdoErr          EQU         -121                      ; no free WDCB available
  100. badMovErr         EQU         -122                      ; move into offspring error
  101. wrgVolTypErr      EQU         -123                      ; wrong volume type error
  102. volGoneErr        EQU         -124                      ; server volume has been disconnected
  103.  
  104. ; error codes -1300 to -1500 reserved for HFS calls                                 <1.7 DNF>
  105.  
  106. fidNotFound       EQU         -1300                     ; no file thread exists         <1.7 DNF>
  107. fidExists         EQU         -1301                     ; file id already exists        <1.7 DNF>
  108. notAFileErr       EQU         -1302                     ; directory specified            <1.7 DNF>
  109. diffVolErr        EQU         -1303                     ; files  on different volumes    <1.8 EKN>
  110. catChangedErr     EQU         -1304                     ; catalog has been modified     <2.2 DNF>
  111. desktopDamagedErr    EQU        -1305                    ; desktop database files are corrupted
  112. sameFileErr        EQU            -1306                    ; can't exachange a file with itself
  113. badFidErr         EQU         -1307                     ; file id is dangling or doesn't <20 KST>
  114.                                                     ; match with the file number
  115. notARemountErr    EQU            -1308                    ; when _Mount allows only remounts and doesn't
  116.                                                     ; get one. <27>
  117.  
  118. ;__________________________________________________
  119. ; Dictionary Manager errors <37><36>
  120.  
  121. ;notBTree                 EQU     -410                ; The file is not a dictionary.
  122. ;btNoSpace                 EQU     -413                ; Can't allocate disk space.
  123. ;btDupRecErr             EQU     -414                ; Record already exists.
  124. ;btRecNotFnd            EQU     -415                ; Record cannot be found.
  125. ;btKeyLenErr            EQU     -416                ; Maximum key length is too long or equal to zero.
  126. ;btKeyAttrErr            EQU     -417                ; There is no such a key attribute.
  127. unknownInsertModeErr    EQU        -20000                ; There is no such an insert mode.
  128. recordDataTooBigErr        EQU     -20001                ; The record data is bigger than buffer size (1024 bytes).
  129. invalidIndexErr            EQU        -20002                ; The recordIndex parameter is not valid.
  130.  
  131. ;__________________________________________________
  132. ; SysEnvirons errors
  133.  
  134. envNotPresent     EQU         -5500                     ; returned by glue environment not present.
  135. envBadVers        EQU         -5501                     ; Version non-positive , bad version number
  136. envVersTooBig     EQU         -5502                     ; Version bigger than call can handle
  137.  
  138. ;__________________________________________________
  139. ; Font Manager errors
  140.  
  141. fontDecError      EQU         -64                       ; error during font declaration
  142. fontNotDeclared EQU         -65                       ; font not declared
  143. fontSubErr        EQU         -66                       ; font substitution occured
  144. fontNotOutlineErr EQU        -32615                    ; bitmap font passed to routine that does outlines only
  145.  
  146. ;__________________________________________________
  147. ; Disk Driver errors
  148.  
  149. firstDskErr       EQU         -84
  150. lastDskErr        EQU         -64
  151. noDriveErr        EQU         -64                       ; drive not installed
  152. offLinErr         EQU         -65                       ; r/w requested for an off-line drive
  153. noNybErr          EQU         -66                       ; couldn’t find 5 nybbles in 200 tries
  154. noAdrMkErr        EQU         -67                       ; couldn’t find valid addr mark
  155. dataVerErr        EQU         -68                       ; read verify compare failed
  156. badCksmErr        EQU         -69                       ; addr mark checksum didn’t check
  157. badBtSlpErr       EQU         -70                       ; bad addr mark bit slip nibbles
  158. noDtaMkErr        EQU         -71                       ; couldn’t find a data mark header
  159. badDCksum         EQU         -72                       ; bad data mark checksum
  160. badDBtSlp         EQU         -73                       ; bad data mark bit slip nibbles
  161. wrUnderrun        EQU         -74                       ; write underrun occurred
  162. cantStepErr       EQU         -75                       ; step handshake failed
  163. tk0BadErr         EQU         -76                       ; track 0 detect doesn’t change
  164. initIWMErr        EQU         -77                       ; unable to initialize IWM
  165. twoSideErr        EQU         -78                       ; tried to read 2nd side on a 1-sided drive
  166. spdAdjErr         EQU         -79                       ; unable to correctly adjust disk speed
  167. seekErr           EQU         -80                       ; track number wrong on address mark
  168. sectNFErr         EQU         -81                       ; sector number never found on a track
  169. fmt1Err           EQU         -82                       ; can’t find sector 0 after track format
  170. fmt2Err           EQU         -83                       ; can’t get enough sync
  171. verErr            EQU         -84                       ; track failed to verify
  172.  
  173. ;__________________________________________________
  174. ; PRAM/Clock errors
  175.  
  176. clkRdErr          EQU         -85                       ; unable to read same clock value twice
  177. clkWrErr          EQU         -86                       ; time written did not verify
  178. prWrErr           EQU         -87                       ; parameter ram written didn’t read-verify
  179. prInitErr         EQU         -88                       ; InitUtil found the parameter ram uninitialized
  180.  
  181. ;__________________________________________________
  182. ; Serial Driver errors
  183.  
  184. rcvrErr           EQU         -89                       ; SCC receiver error (framing, parity, OR)
  185. breakRecd         EQU         -90                       ; Break received (SCC)
  186.  
  187. ;__________________________________________________
  188. ; Power Manager Errors
  189.  
  190. pmBusyErr         EQU         -13000                    ; Power Mgr never ready to start handshake
  191. pmReplyTOErr      EQU         -13001                    ; Timed out waiting for reply
  192. pmSendStartErr    EQU         -13002                    ; during send, pmgr did not start hs
  193. pmSendEndErr      EQU         -13003                    ; during send, pmgr did not finish hs
  194. pmRecvStartErr    EQU         -13004                    ; during receive, pmgr did not start hs
  195. pmRecvEndErr      EQU         -13005                    ; during receive, pmgr did not finish hs
  196.                                                         ; configured for this connection)
  197. ;__________________________________________________
  198. ; Scrap Manager errors
  199.  
  200. noScrapErr        EQU         -100                      ; No scrap exists error
  201. noTypeErr         EQU         -102                      ; No object of that type in scrap
  202.  
  203. ;__________________________________________________
  204. ; Memory Manager errors
  205.  
  206. memROZWarn        EQU         -99                       ; soft error in ROZ
  207. memROZError       EQU         -99                       ; hard error in ROZ
  208. memROZErr         EQU         -99                       ; hard error in ROZ
  209. memFullErr        EQU         -108                      ; Not enough room in heap zone
  210. nilHandleErr      EQU         -109                      ; Handle was NIL in HandleZone or other;
  211. memWZErr          EQU         -111                      ; WhichZone failed (applied to free block);
  212. memPurErr         EQU         -112                      ; trying to purge a locked or non-purgeable block;
  213. memAdrErr         EQU         -110                      ; address was odd, or out of range;
  214. memAZErr          EQU         -113                      ; Address in zone check failed;
  215. memPCErr          EQU         -114                      ; Pointer Check failed;
  216. memBCErr          EQU         -115                      ; Block Check failed;
  217. memSCErr          EQU         -116                      ; Size Check failed;
  218. memLockedErr      EQU         -117                      ; trying to move a locked block (MoveHHi)
  219.  
  220. ;__________________________________________________
  221. ; Resource Manager errors
  222.  
  223. resNotFound       EQU         -192                      ; resource not found
  224. resFNotFound      EQU         -193                      ; resource file not found
  225. addResFailed      EQU         -194                      ; AddResource failed
  226. addRefFailed      EQU         -195                      ; AddReference failed
  227. rmvResFailed      EQU         -196                      ; RmveResource failed
  228. rmvRefFailed      EQU         -197                      ; RmveReference failed
  229. resAttrErr        EQU         -198                      ; attribute inconsistent with operation
  230. mapReadErr        EQU         -199                      ; map inconsistent with operation
  231. CantDecompress    EQU            -186                    ; resource bent ("the bends") - can't decompress a compressed resource
  232. badExtResource    EQU            -185                    ; extended resource has a bad format.
  233.  
  234. ;__________________________________________________
  235. ; Event Manager errors
  236.  
  237. evtNotEnb         EQU         1                         ; event not enabled at PostEvent
  238.  
  239. ;__________________________________________________
  240. ; QuickDraw errors
  241.  
  242. noMemForPictPlaybackErr EQU            -145
  243. rgnTooBigError             EQU            -147
  244. pixMapTooDeepErr        EQU            -148
  245. nsStackErr                 EQU            -149            ; insufficient stack
  246. cMatchErr                 EQU         -150              ; Color2Index failed to find an index
  247. cTempMemErr               EQU         -151              ; failed to allocate memory for temporary structures
  248. cNoMemErr                 EQU         -152              ; failed to allocate memory for structure
  249. cRangeErr                 EQU         -153              ; range error on color table request
  250. cProtectErr               EQU         -154              ; colorTable entry protection violation
  251. cDevErr                   EQU         -155              ; invalid type of graphics device
  252. cResErr                   EQU         -156              ; invalid resolution for MakeITable
  253. rgnTooBigErr              EQU         -500              ; region too big error
  254. updPixMemErr              EQU         -125              ; insufficient memory to update a pixmap
  255. ;cDepthErr                 EQU         -157      defined in QDOffscreen ; invalid pixel depth
  256. AbortPicPlayBackErr        EQU            -158            ;signature to abort pic playback
  257.  
  258. ;__________________________________________________
  259. ; Picture Utilities errors
  260.  
  261. pictInfoVersionErr        EQU  -11000                    ;wrong version of the PictInfo structure
  262. pictInfoIDErr            EQU  -11001                    ;the internal consistancy check for the PictInfoID is wrong
  263. pictInfoVerbErr            EQU  -11002                    ;the passed verb was invalid
  264. cantLoadPickMethodErr    EQU  -11003                    ;unable to load the custom pick proc
  265. colorsRequestedErr        EQU  -11004                    ;the number of colors requested was illegal
  266. pictureDataErr            EQU  -11005                    ;the picture data was invalid
  267.  
  268. ;__________________________________________________
  269. ; Sound Manager errors
  270.  
  271. noHardware                EQU    noHardwareErr             ; *** obsolete spelling
  272. notEnoughHardware         EQU notEnoughHardwareErr      ; *** obsolete spelling
  273. queueFull                 EQU -203
  274. resProblem                EQU -204
  275. badChannel                EQU -205
  276. badFormat                 EQU -206
  277. notEnoughBufferSpace     EQU -207                    ; could not allocate enough memory
  278. badFileFormat               EQU -208                    ; was not type AIFF or was of bad format,corrupt
  279. channelBusy               EQU -209                    ; the channel is being used for a PFD already
  280. buffersTooSmall           EQU -210                    ; can not operate in the memory allowed
  281. channelNotBusy               EQU -211
  282. noMoreRealTime              EQU -212                    ; not enough CPU cycles left to add another task
  283. siNoSoundInHardware        EQU -220
  284. siBadSoundInDevice        EQU -221                    ; invalid index passed to SoundInGetIndexedDevice
  285. siNoBufferSpecified        EQU -222                    ; returned by synchronous SPBRecord if nil buffer passed
  286. siInvalidCompression    EQU -223                    ; invalid compression type
  287. siHardDriveTooSlow        EQU -224                    ; hard drive too slow to record to disk
  288. siInvalidSampleRate        EQU -225                    ; invalid sample rate
  289. siInvalidSampleSize        EQU -226                    ; invalid sample size
  290. siDeviceBusyErr            EQU -227                    ; input device already in use
  291. siBadDeviceName            EQU -228                    ; input device could not be opened
  292. siBadRefNum                EQU -229                    ; invalid input device reference number
  293. siInputDeviceErr        EQU -230                    ; input device hardware failure
  294. siUnknownInfoType        EQU -231                    ; invalid info type selector (returned by driver)
  295. siUnknownQuality        EQU -232                    ; invalid quality selector (returned by driver)
  296.  
  297. ;__________________________________________________
  298. ; Notification Manager errors
  299.  
  300. nmTypErr          EQU         -299                      ; wrong queue type
  301.  
  302. ;__________________________________________________
  303. ; Slot Manager errors *** Yuck! These use positive numbers! ***
  304.  
  305. siInitSDTblErr    EQU         1                         ; slot int dispatch table could not be initialized.
  306. siInitVBLQsErr    EQU         2                         ; VBL queues for all slots could not be initialized.
  307. siInitSPTblErr    EQU         3                         ; slot priority table could not be initialized.
  308. sdmJTInitErr      EQU         10                        ; SDM Jump Table could not be initialized.
  309. sdmInitErr        EQU         11                        ; SDM could not be initialized.
  310. sdmSRTInitErr     EQU         12                        ; Slot Resource Table could not be initialized.
  311. sdmPRAMInitErr    EQU         13                        ; Slot PRAM could not be initialized.
  312. sdmPriInitErr     EQU         14                        ; cards could not be initialized.
  313.  
  314. ;---The following errors may be generated during system Init. If they are,
  315. ; they will be logged into the sInfo array and returned each time a call
  316. ; to the slot manager is made (for the card wich generated the error).
  317.  
  318. ; Errors specific to the Start Mgr
  319.  
  320. smSDMInitErr      EQU         -290                      ; SDM could not be initialized.
  321. smSRTInitErr      EQU         -291                      ; Slot Resource Table could not be initialized.
  322. smPRAMInitErr     EQU         -292                      ; Slot Resource Table could not be initialized.
  323. smPriInitErr      EQU         -293                      ; cards could not be initialized.
  324. smEmptySlot       EQU         -300                      ; No card in slot
  325. smCRCFail         EQU         -301                      ; CRC check failed for declaration data
  326. smFormatErr       EQU         -302                      ; FHeader Format is not Apple's
  327. smRevisionErr     EQU         -303                      ; Wrong revison level
  328. smNoDir           EQU         -304                      ; Directory offset is Nil
  329. smDisabledSlot    EQU         -305                      ; This slot is disabled (-305 use to be smLWTstBad)        <12>
  330. smNosInfoArray    EQU         -306                      ; No sInfoArray. Memory Mgr error.
  331. smResrvErr        EQU         -307                      ; Fatal reserved error. Resreved field <> 0.
  332. smUnExBusErr      EQU         -308                      ; Unexpected BusError
  333. smBLFieldBad      EQU         -309                      ; ByteLanes field was bad.
  334. smFHBlockRdErr    EQU         -310                      ; Error occured during _sGetFHeader.
  335. smFHBlkDispErr    EQU         -311                      ; Error occured during _sDisposePtr (Dispose of FHeader block).
  336. smDisposePErr     EQU         -312                      ; _DisposePointer error
  337. smNoBoardSRsrc    EQU         -313                      ; No Board sResource.
  338. smGetPRErr        EQU         -314                      ; Error occured during _sGetPRAMRec (See SIMStatus).
  339. smNoBoardId       EQU         -315                      ; No Board Id.
  340. smInitStatVErr    EQU         -316                      ; The InitStatusV field was negative after primary or secondary init.
  341. smInitTblVErr     EQU         -317                      ; An error occured while trying to initialize the Slot Resource Table.
  342. smReservedSlot    EQU         -318                      ; slot is reserved, VM should not use this address space.  <35> rb
  343. smBadBoardId      EQU         -319                      ; BoardId was wrong, re-init the PRAM record
  344. smBusErrTO        EQU         -320                      ; BusError timeout
  345.  
  346. ;---The following errors are for primary or secondary init code.  The errors are logged in the
  347. ; vendor status field of the sInfo record.    Normally the vendor error is not Apple's concern,
  348. ; but a special error is needed to patch secondary inits.
  349.  
  350. svTempDisable     EQU         -32768                    ; temporarily disable card but run primary init
  351. svDisabled        EQU         -32640                    ; reserve range -32640 to -32768 for Apple temp disables
  352.  
  353. ;---The following errors may be generated at any time after system Init and will not
  354. ; be logged into the sInfo array.
  355.  
  356. smBadRefId        EQU         -330                      ; Reference Id not found in List
  357. smBadsList        EQU         -331                      ; Bad sList: Id1 < Id2 < Id3 ... format is not followed.
  358. smReservedErr     EQU         -332                      ; Reserved field not zero
  359. smCodeRevErr      EQU         -333                      ; Code revision is wrong
  360. smCPUErr          EQU         -334                      ; Code revision is wrong
  361. smsPointerNil     EQU         -335                      ; LPointer is nil {From sOffsetData. If this error occurs, check sInfo rec for more information.}
  362. smNilsBlockErr    EQU         -336                      ; Nil sBlock error {Dont allocate and try to use a nil sBlock}
  363. smSlotOOBErr      EQU         -337                      ; Slot out of bounds error
  364. smSelOOBErr       EQU         -338                      ; Selector out of bounds error
  365. smNewPErr         EQU         -339                      ; _NewPtr error
  366. smBlkMoveErr      EQU         -340                      ; _BlockMove error
  367. smCkStatusErr     EQU         -341                      ; Status of slot = fail.
  368. smGetDrvrNamErr EQU         -342                      ; Error occured during _sGetDrvrName.
  369. smDisDrvrNamErr EQU         -343                      ; Error occured during _sDisDrvrName.
  370. smNoMoresRsrcs    EQU         -344                      ; No more sResources
  371. smsGetDrvrErr     EQU         -345                      ; Error occurred during _sGetDriver.
  372. smBadsPtrErr      EQU         -346                      ; Bad pointer was passed to sCalcsPointer
  373. smByteLanesErr    EQU         -347                      ; NumByteLanes was determined to be zero.
  374. smOffsetErr       EQU         -348                      ; Offset was too big (temporary error, should be fixed)
  375. smNoGoodOpens     EQU         -349                      ; No opens were successfull in the loop.
  376. smSRTOvrFlErr     EQU         -350                      ; SRT over flow.
  377. smRecNotFnd       EQU         -351                      ; Record not found in the SRT.
  378.  
  379. ;__________________________________________________
  380. ; Edition Mgr errors
  381.  
  382. editionMgrInitErr         EQU    -450                    ; edition manager not inited by this app
  383. badSectionErr             EQU    -451                    ; not a valid SectionRecord
  384. notRegisteredSectionErr EQU    -452                    ; not a registered SectionRecord
  385. badEditionFileErr         EQU    -453                    ; edition file is corrupt
  386. badSubPartErr             EQU    -454                    ; can not use sub parts in this release
  387. multiplePublisherWrn     EQU    -460                    ; A Publisher is already registered for that container
  388. containerNotFoundWrn     EQU    -461                    ; could not find editionContainer at this time
  389. containerAlreadyOpenWrn EQU    -462                    ; container already opened by this section
  390. notThePublisherWrn         EQU -463                     ; not the publisher that last wrote to that container
  391.  
  392. ;__________________________________________________
  393. ; TextEdit errors
  394.  
  395. teScrapSizeErr    EQU         -501                      ; scrap item too big for text edit record
  396.  
  397. ;__________________________________________________
  398. ; other OS errors
  399.  
  400. hwParamErr         EQU         -502                    ; bad selector for _HWPriv <1.3>
  401.  
  402. ;__________________________________________________
  403. ; Process Manager errors
  404.  
  405. procNotFound        EQU        -600                    ; no eligible process with specified descriptor
  406. memFragErr            EQU        -601                    ; not enough room to launch app w/special requirements
  407. appModeErr            EQU        -602                    ; memory mode is 32-bit, but app not 32-bit clean
  408. protocolErr            EQU        -603                    ; app made module calls in improper order
  409. hardwareConfigErr    EQU        -604                    ; hardware configuration not correct for call
  410. appMemFullErr        EQU        -605                    ; application SIZE not big enough for launch
  411. appIsDaemon            EQU        -606                    ; app is BG-only, and launch flags disallow this
  412.  
  413. ;__________________________________________________
  414. ; MemoryDispatch errors
  415.  
  416. notEnoughMemoryErr    EQU        -620                    ; insufficient physical memory                <1.4>
  417. notHeldErr            EQU        -621                    ; specified range of memory is not held        <1.4>
  418. cannotMakeContiguousErr EQU    -622                    ; cannot make specified range contiguous    <1.4>
  419. notLockedErr        EQU        -623                    ; specified range of memory is not locked    <1.4>
  420. interruptsMaskedErr    EQU        -624                    ; don’t call with interrupts masked            <1.4>
  421. cannotDeferErr        EQU        -625                    ; unable to defer additional functions        <1.4>
  422.  
  423. ;__________________________________________________
  424. ; AppleTalk errors
  425.  
  426. ddpSktErr         EQU         -91                       ; error in socket number
  427. ddpLenErr         EQU         -92                       ; data length too big
  428. noBridgeErr       EQU         -93                       ; no network bridge for non-local send
  429. lapProtErr        EQU         -94                       ; error in attaching/detaching protocol
  430. excessCollsns     EQU         -95                       ; excessive collisions on write
  431. portInUse         EQU         -97                       ; driver Open error code (port is in use)
  432. portNotCf         EQU         -98                       ; driver Open error code (parameter RAM not
  433.  
  434. ; AppleTalk - NBP errors
  435.  
  436. nbpBuffOvr        EQU         -1024                     ; Buffer overflow in LookupName
  437. nbpNoConfirm      EQU         -1025                     ; Name not confirmed on ConfirmName
  438. nbpConfDiff       EQU         -1026                     ; Name confirmed at different socket
  439. nbpDuplicate      EQU         -1027                     ; Duplicate name exists already
  440. nbpNotFound       EQU         -1028                     ; Name not found on remove
  441. nbpNISErr         EQU         -1029                     ; Error trying to open the NIS
  442.  
  443. ; ASP errors (.XPP driver)
  444.  
  445. aspBadVersNum     EQU         -1066                     ; Server cannot support this ASP version
  446. aspBufTooSmall    EQU         -1067                     ; Buffer too small
  447. aspNoMoreSess     EQU         -1068                     ; No more sessions on server
  448. aspNoServers      EQU         -1069                     ; No servers at that address
  449. aspParamErr       EQU         -1070                     ; Parameter error
  450. aspServerBusy     EQU         -1071                     ; Server cannot open another session
  451. aspSessClosed     EQU         -1072                     ; Session closed
  452. aspSizeErr        EQU         -1073                     ; Command block too big
  453. aspTooMany        EQU         -1074                     ; Too many clients (server error)
  454. aspNoAck          EQU         -1075                     ; No ack on attention request (server err)
  455.  
  456. ;AppleTalk - ATP errors
  457.  
  458. reqFailed         EQU         -1096                     ; SendRequest failed: retry count exceeded
  459. tooManyReqs       EQU         -1097                     ; Too many concurrent requests
  460. tooManySkts       EQU         -1098                     ; Too many concurrent responding-sockets
  461. badATPSkt         EQU         -1099                     ; Bad ATP-responding socket
  462. badBuffNum        EQU         -1100                     ; Bad response buffer number specififed
  463. noRelErr          EQU         -1101                     ; No release received
  464. cbNotFound        EQU         -1102                     ; Control Block (TCB or RspCB) not found
  465. noSendResp        EQU         -1103                     ; AddResponse issued without SendResponse
  466. noDataArea        EQU         -1104                     ; No data area for request to MPP
  467. reqAborted        EQU         -1105                     ; SendRequest aborted by RelTCB
  468. buf2SmallErr      EQU         -3101                     ; buffer too small error
  469. noMPPErr          EQU         -3102                     ; no MPP error
  470. ckSumErr          EQU         -3103                     ; check sum error
  471. extractErr        EQU         -3104                     ; extraction error
  472. readQErr          EQU         -3105                     ; read queue error
  473. atpLenErr         EQU         -3106                     ; ATP length error
  474. atpBadRsp         EQU         -3107                     ; ATP bad response error
  475. recNotFnd         EQU         -3108                     ; Record not found
  476. sktClosedErr      EQU         -3109                     ; Socket closed error
  477.  
  478. ; AFP errors (.XPP driver)
  479.  
  480. afpAccessDenied    EQU         -5000                     ; AFP access denied
  481. afpAuthContinue    EQU         -5001                     ; AFP authorization continue
  482. afpBadUAM         EQU         -5002                     ; AFP bad UAM
  483. afpBadVersNum     EQU         -5003                     ; AFP bad version number
  484. afpBitmapErr      EQU         -5004                     ; AFP bit map error
  485. afpCantMove       EQU         -5005                     ; AFP can't move error
  486. afpDenyConflict    EQU         -5006                     ; AFP deny conflict
  487. afpDirNotEmpty    EQU         -5007                     ; AFP dir not empty
  488. afpDiskFull       EQU         -5008                     ; AFP disk full
  489. afpEofError       EQU         -5009                     ; AFP End-of-File error
  490. afpFileBusy       EQU         -5010                     ; AFP file busy
  491. afpFlatVol        EQU         -5011                     ; AFP flat volume
  492. afpItemNotFound    EQU         -5012                     ; AFP item not found
  493. afpLockErr        EQU         -5013                     ; AFP lock error
  494. afpMiscErr        EQU         -5014                     ; AFP misc error
  495. afpNoMoreLocks    EQU         -5015                     ; AFP no more locks
  496. afpNoServer       EQU         -5016                     ; AFP no server
  497. afpObjectExists    EQU         -5017                     ; AFP object already exists
  498. afpObjectNotFound EQU         -5018                     ; AFP object not found
  499. afpParmErr        EQU         -5019                     ; AFP parm error
  500. afpRangeNotLocked EQU         -5020                     ; AFP range not locked
  501. afpRangeOverlap    EQU         -5021                     ; AFP range overlap
  502. afpSessClosed     EQU         -5022                     ; AFP session closed
  503. afpUserNotAuth    EQU         -5023                     ; AFP user not authorized
  504. afpCallNotSupported EQU       -5024                     ; AFP call not supported
  505. afpObjectTypeErr  EQU         -5025                     ; AFP object type error
  506. afpTooManyFilesOpen EQU       -5026                     ; AFP too many files open
  507. afpServerGoingDown EQU        -5027                     ; AFP server going down
  508. afpCantRename     EQU         -5028                     ; AFP can't rename
  509. afpDirNotFound    EQU         -5029                     ; AFP directory not found
  510. afpIconTypeError  EQU         -5030                     ; AFP icon type error
  511. afpVolLocked      EQU         -5031                     ; Volume is Read-Only
  512. afpObjectLocked    EQU         -5032                     ; Object is M/R/D/W inhibited
  513. afpContainsSharedErr EQU     -5033                     ;$FFFFEC57 the folder being shared contains a shared folder }
  514. afpIDNotFound    EQU         -5034                     ;$FFFFEC56
  515. afpIDExists         EQU         -5035                     ;$FFFFEC55
  516. afpDiffVolErr    EQU         -5036                     ;$FFFFEC54
  517. afpCatalogChanged EQU         -5037                     ;$FFFFEC53
  518. afpSameObjectErr EQU         -5038                     ;$FFFFEC52
  519. afpBadIDErr         EQU         -5039                     ;$FFFFEC51
  520. afpPwdSameErr    EQU         -5040                     ;$FFFFEC50 someone tried to change their password to the same password on a mantadory password change
  521. afpPwdTooShortErr EQU         -5041                     ;$FFFFEC4F the password being set is too short: there is a minimum length that must be met or exceeded
  522. afpPwdExpiredErr EQU         -5042                     ;$FFFFEC4E the password being used is too old: this requires the user to change the password before log-in can continue
  523. afpInsideSharedErr EQU         -5043                     ;$FFFFEC4D the folder being shared is inside a shared folder OR
  524.                                                       ;           the folder contains a shared folder and is being moved into a shared folder OR
  525.                                                     ;           the folder contains a shared folder and is being moved into the descendent of a shared folder.
  526. afpInsideTrashErr EQU         -5044                     ;$FFFFEC4C the folder being shared is inside the trash folder OR
  527.                                                     ;           the shared folder is being moved into the trash folder OR
  528.                                                     ;           the folder is being moved to the trash and it contains a shared folder
  529.  
  530. ;__________________________________________________
  531. ; PPC errors
  532.  
  533. notInitErr        EQU         -900                    ; PPCToolBox not initialized
  534.  
  535. nameTypeErr        EQU         -902                    ; Invalid or inappropriate locationKindSelector in locationName
  536. noPortErr        EQU         -903                    ; Unable to open port or bad portRefNum
  537. noGlobalsErr    EQU         -904                    ; The system is hosed, better re-boot
  538. localOnlyErr    EQU         -905                    ; Network activity is currently disabled
  539. destPortErr        EQU         -906                    ; Port does not exist at destination
  540. sessTableErr    EQU         -907                    ; Out of session tables, try again later
  541. noSessionErr    EQU         -908                    ; Invalid session reference number
  542. badReqErr        EQU         -909                    ; bad parameter or invalid state for operation
  543. portNameExistsErr EQU         -910                    ; port is already open (perhaps in another app)
  544. noUserNameErr    EQU         -911                    ; user name unknown on destination machine
  545. userRejectErr    EQU         -912                    ; Destination rejected the session request
  546. noMachineNameErr EQU         -913                    ; user hasn't named his Macintosh in the Network Setup Control Pannel
  547. noToolboxNameErr EQU         -914                    ; A system resource is missing, not too likely
  548. noResponseErr    EQU         -915                    ; unable to contact destination
  549. portClosedErr    EQU         -916                    ; port was closed
  550. sessClosedErr    EQU         -917                    ; session was closed
  551.  
  552. badPortNameErr    EQU         -919                    ; PPCPortRec malformed
  553.  
  554. noDefaultUserErr EQU         -922                    ; user hasn't typed in owners name in Network Setup Control Pannel
  555. notLoggedInErr    EQU         -923                    ; The default userRefNum does not yet exist
  556. noUserRefErr    EQU         -924                    ; unable to create a new userRefNum
  557. networkErr        EQU         -925                    ; An error has occured in the network, not too likely
  558. noInformErr        EQU         -926                    ; PPCStart failed because destination did not have inform pending
  559. authFailErr        EQU         -927                    ; unable to authenticate user at destination
  560. noUserRecErr    EQU         -928                    ; Invalid user reference number
  561.  
  562. badServiceMethodErr EQU     -930                    ; illegal service type, or not supported
  563. badLocNameErr    EQU         -931                    ; location name malformed
  564. guestNotAllowedErr EQU         -932                    ; destination port requires authentication
  565.  
  566. ;____________________________________________________________________________________________________
  567.  
  568.                   IF          wholeErrors THEN
  569.  
  570. ;__________________________________________________
  571. ; Serial Driver error masks
  572.  
  573. swOverrunErr      EQU         1
  574. parityErr         EQU         16
  575. hwOverrunErr      EQU         32
  576. framingErr        EQU         64
  577.  
  578. ;____________________________________________________________________________________________________
  579. ;
  580. ; These are System Errors. They use a different numbering space from the OS errors above, so there
  581. ; can be a System Error and an OS error with the same number. System Errors are intercepted by
  582. ; MacsBug or displayed by the System Error Handler, which uses a DSAT resource to determine how to
  583. ; display them. Some errors are used to put up dialogs with the System Error Handler, rather than to
  584. ; report an error. These are not intercepted by MacsBug. MacsBug’s rule is to stop any system errors
  585. ; with positive numbers, except for errors 30 and 42. Older versions of MacsBug (6.2d4 and older)
  586. ; used a different rule.
  587.  
  588. ;__________________________________________________
  589. ; System Errors that should cause MacsBug to stop (0-29, 31-41, 43-16383)
  590. ;    and look good in the System Error alert because they are in the range 0-29, 31-41, or 43-99
  591.  
  592. dsBusError        EQU         1                         ; bus error
  593. dsAddressErr      EQU         2                         ; address error
  594. dsIllInstErr      EQU         3                         ; illegal instruction error
  595. dsZeroDivErr      EQU         4                         ; zero divide error
  596. dsChkErr          EQU         5                         ; check trap error
  597. dsOvflowErr       EQU         6                         ; overflow trap error
  598. dsPrivErr         EQU         7                         ; privilege violation error
  599. dsTraceErr        EQU         8                         ; trace mode error
  600. dsLineAErr        EQU         9                         ; line 1010 trap error
  601. dsLineFErr        EQU         10                        ; line 1111 trap error
  602. dsMiscErr         EQU         11                        ; miscellaneous hardware exception error
  603. dsCoreErr         EQU         12                        ; unimplemented core routine error
  604. dsIrqErr          EQU         13                        ; uninstalled interrupt error
  605. dsIOCoreErr       EQU         14                        ; I/O core error
  606. dsLoadErr         EQU         15                        ; Segment Loader error
  607. dsFPErr           EQU         16                        ; floating point error
  608. dsNoPackErr       EQU         17                        ; package 0 not present
  609. dsNoPk1           EQU         18                        ; package 1 not present
  610. dsNoPk2           EQU         19                        ; package 2 not present
  611. dsNoPk3           EQU         20                        ; package 3 not present
  612. dsNoPk4           EQU         21                        ; package 4 not present
  613. dsNoPk5           EQU         22                        ; package 5 not present
  614. dsNoPk6           EQU         23                        ; package 6 not present
  615. dsNoPk7           EQU         24                        ; package 7 not present
  616. dsMemFullErr      EQU         25                        ; out of memory
  617. dsBadLaunch       EQU         26                        ; can’t launch file (CODE 0 missing or ...)
  618. dsFSErr           EQU         27                        ; file system map has been trashed
  619. dsStknHeap        EQU         28                        ; stack has moved into application heap
  620. negZcbFreeErr     EQU         33                        ; zcbFree has gone negative
  621. dsFinderErr       EQU         41                        ; can’t load the Finder
  622. dsBadSlotInt      EQU         51                        ; unserviceable slot interrupt
  623. dsBadSANEOpcode    EQU         81                        ; bad opcode given to SANE
  624. dsBadPatchHeader EQU        83                        ; SetTrapAddress saw the “come-from” header
  625. menuPrgErr        EQU         84                        ; a menu was purged while in use
  626. dsMBarNFnd        EQU         85                        ; could not load MBDF
  627. dsHMenuFindErr    EQU         86                        ; could not find HMenu’s parent in MenuKey
  628. dsWDEFNotFound    EQU            87                        ; could not load WDEF
  629. dsCDEFNotFound    EQU            88                        ; could not load CDEF
  630. dsMDEFNotFound    EQU            89                        ; count not load MDEF
  631. dsNoFPU               EQU         90                       ; an FPU instruction was executed and the machine doesn’t have one
  632.  
  633. ;__________________________________________________
  634. ; System Errors that should cause MacsBug to stop (0-29, 31-41, 43-16383)
  635. ;    these look good in the System Error alert because of special templates in the DSAT
  636.  
  637. dsNoPatch         EQU         98                        ; can’t load patch for particular model
  638. dsBadPatch        EQU         99                        ; can’t load patch resource
  639. dsParityErr       EQU         101                       ; memory parity error                <1.5><1.6>
  640. dsOldSystem       EQU         102                       ; System is too old for this ROM    <2.0>
  641. ds32BitMode       EQU         103                       ; booting in 32-bit on a 24-bit sys <2.0>
  642. dsNeedToWriteBootBlocks    EQU    104                        ; need to write new boot blocks
  643. dsNotEnoughRAMToBoot    EQU    105                        ; must have at least 1.5MB of RAM to boot 7.0
  644.  
  645. ;__________________________________________________
  646. ; System Errors that should not cause MacsBug to stop (30, 42, 16384-32767)
  647. ;    these all have special templates in the DSAT
  648. ;    if you need to make new errors of this type, use numbers from 20000 up.
  649.  
  650. dsReinsert        EQU         30                        ; request user to reinsert off-line volume
  651.  
  652. shutDownAlert          EQU     42                        ; tell the user he can shut down his machine
  653. dsShutDownOrRestart     EQU       20000                     ; user choice between ShutDown and Restart
  654. dsSwitchOffOrRestart EQU      20001                     ; user choice between switching off and Restart
  655. dsForcedQuit         EQU    20002                    ; allow the user to ExitToShell, return if Cancel
  656. dsSCSIWarn             EQU    20010                    ; Portable SCSI adapter warning.                    <34>
  657.  
  658. ;__________________________________________________
  659. ; System Errors that are used after MacsBug is loaded to put up dialogs
  660. ;    since these should not cause MacsBug to stop, they must be in the range (30, 42, 16384-32767)
  661. ;    negative numbers add to an existing dialog without putting up a whole new dialog
  662.  
  663. dsMacsBugInstalled         EQU        -10                   ; say “MacsBug Installed”
  664. dsDisassemblerInstalled    EQU        -11                   ; say “Disassembler Installed”
  665. dsExtensionsDisabled    EQU        -13                    ; say “Extensions Disabled”
  666.  
  667. ;__________________________________________________
  668. ; System Errors that are used before MacsBug is loaded to put up dialogs
  669. ;    MacsBug does not have to special-case these, since it is not loaded yet!
  670. ;    negative numbers add to an existing dialog without putting up a whole new dialog
  671.  
  672. dsGreeting        EQU         40                        ; welcome to Macintosh greeting
  673.  
  674. ;__________________________________________________
  675. ; System Errors that are never actually generated
  676. ;    *** do not pass any of these to SysErr ***
  677.  
  678. dsSysErr          EQU         32767                     ; catch-all error used in DSAT
  679.  
  680. ;__________________________________________________
  681. ; old names here for compatibility’s sake
  682.  
  683. WDEFNFnd        EQU         dsWDEFNotFound
  684. CDEFNFnd        EQU         dsCDEFNotFound
  685.  
  686. ;__________________________________________________
  687. ; obsolete System Errors that are no longer used, but I don’t have the guts to remove from this file
  688.  
  689. dsNotThe1         EQU         31                        ; not the disk I wanted
  690. dsBadStartupDisk  EQU         42                        ; unable to mount boot volume (sad Mac only)
  691. dsSystemFileErr   EQU         43                        ; can’t find System file to open (sad Mac only)
  692. dsHD20Installed   EQU         -12                       ; say “HD20 Startup”
  693. mBarNFnd          EQU         -126                      ; *** replaced by dsMBarNFnd
  694. hMenuFindErr      EQU         -127                      ; *** replaced by dsHMenuFindErr
  695.  
  696. ;__________________________________________________
  697. ; System Errors
  698.  
  699. userBreak         EQU         -490                      ; debugger break
  700. strUserBreak      EQU         -491                      ; debugger break; display string on stack
  701. exUserBreak       EQU         -492                      ; debugger break; debugger commands on stack
  702.  
  703. ;____________________________________________________________________________________________________
  704.  
  705.                   ENDIF
  706.  
  707. ;____________________________________________________________________________________________________
  708. ; obsolete errors that are no longer used, but I don’t have the guts to remove from this file
  709.  
  710. selectorErr        EQU            paramErr                ; bad selector, for selector-based traps
  711.  
  712. ;____________________________________________________________________________________________________
  713.  
  714.     ENDIF    ; ...already included
  715.